import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  postBarcode: [{ required: true, message: "邮件编码为必填项", trigger: "blur" }],
  supplyPlcId: [{ required: true, message: "供件台为必填项", trigger: "blur" }],
  carNumber: [{ required: true, message: "小车号为必填项", trigger: "blur" }],
  identStatus: [{ required: true, message: "识别状态为必填项", trigger: "blur" }],
  identType: [{ required: true, message: "识别类型为必填项", trigger: "blur" }],
  scanTime: [{ required: true, message: "扫描时间为必填项", trigger: "change" }],
});
